package com.asj.house.service;

import com.asj.house.entity.HouseRoom;
import com.asj.house.returns.RespEntity;
import com.asj.house.returns.RespTable;
import com.asj.house.vo.param.RoomParam;
import com.asj.house.vo.param.UserParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 房屋信息表 服务类
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
public interface HouseRoomService extends IService<HouseRoom> {

    /**
     * 房源总览列表
     * @return
     */
    RespTable<List<HouseRoom>> listHouseRoom(RoomParam roomParam);

    /**
     * 新增房源
     * @param houseRoom
     * @return
     */
    RespEntity insertHouseRoom(HouseRoom houseRoom);

    /**
     * 编辑房源
     * @param houseRoom
     * @return
     */
    RespEntity updateHouseRoom(HouseRoom houseRoom);

    /**
     * 删除房源
     * @param roomId
     * @return
     */
    RespEntity deleteHouseRoom(Integer roomId);

    /**
     * 批量删除房源
     * @param roomIds
     * @return
     */
    RespEntity deleteBatchHouseRoom(Integer[] roomIds);

}
